package ots.java.march;

public class Caller {

    /**
     * @param args
     */
    public static void main(String[] args) {
   
        
        School sch = new School();
        sch.setName("SKY");
        sch.setAddress("서울");
        sch.setOwner("이사장");
        
        
        Teacher ts = new Teacher();
        ts.setName("쌤");
        ts.setClassnm("A반");
        ts.setAge(44);
        
        Student stu = new Student();
        stu.setName("하학생");
        stu.setAge(10);
        stu.setClassnm("A반");
        
        //객체 넣기
        stu.setTeac(ts);
        ts.setStu(stu);
        
        
        sch.setStu(stu);
        sch.setTeach(ts);
        
        System.out.println("학생명:"+sch.getStu().getName());
        
        
    }

}
